package com.xht.authorization.server.controller;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h1>描述 ：</h1>
 *
 * @author : 小糊涂
 * @version : 1.0
 **/
@RestController
public class TestController {
    @GetMapping("/user/info")
    public Object re(){
        return  SecurityContextHolder.getContext().getAuthentication();
    }
}
